package errorx

/**
全局错误码 http错误码
*/

var (
	InvalidArgument    = New(400, "invalid argument")    // 参数不合法
	Unauthorized       = New(401, "unauthorized")        // 未经授权
	PermissionDenied   = New(403, "permission denied")   // 权限不足
	NotFound           = New(404, "not found")           // 资源不存在
	AlreadyExists      = New(409, "already exists")      // 资源已存在
	TooManyRequests    = New(429, "too many requests")   // 请求频率超限
	ServerError        = New(500, "server error")        // 内部服务器错误
	NotImplemented     = New(501, "not implemented")     // 服务未实现
	ServiceUnavailable = New(503, "service unavailable") // 服务不可用
	GatewayTimeout     = New(504, "gateway timeout")     // 请求超时

)
